/*
 * lock_control.h
 *
 *  Created on: Jan 9, 2025
 *      Author: Lenovo
 */

#ifndef USER_LOCK_CONTROL_H_
#define USER_LOCK_CONTROL_H_

typedef enum{
    LOCK_STATUS_OPEN = 1,
    LOCK_STATUS_CLOSE = 2,
}lock_status_t;

void lock_control_init(void);
void lock_ctrl_open(void);
void lock_ctrl_close(void);
void lock_ctrl_brake(void);
void lock_ctrl_idle(void);
unsigned char get_lock_status(void);
void set_lock_open_status(void);
void set_lock_close_status(void);
void lock_task(void);
uint8_t get_close_detect_flag(void);
void clear_close_detect_flag(void);
uint8_t get_is_lock_sleep(void);
#endif /* USER_LOCK_CONTROL_H_ */
